package com.mes.service.yzl;


import com.mes.dao.yzl.DetailMapper;
import com.mes.entity.yzl.Detail;
import com.mes.entity.yzlExtend.ExtendDetail;
import com.mes.entity.yzlExtend.ExtendReceive;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.io.InputStream;
import java.io.Reader;
import java.util.List;
import java.util.zip.InflaterInputStream;

@Service
@Transactional
public class DetailServiceImpl implements DetailService{

    @Resource
    public DetailMapper detailMapper;

    @Override
    public int addDetail(ExtendDetail extendDetail){
        return detailMapper.extendDetail(extendDetail);
    }

    @Override
    public int countList(ExtendReceive extendReceive) {
        return detailMapper.countList(extendReceive);
    }

    //@Override
    public List<Detail> listdetail(ExtendReceive extendReceive) {
        return detailMapper.listdetail(extendReceive);
    }

    @Override
    public int updateDetail(ExtendReceive extendReceive) {
        return detailMapper.updateDetail(extendReceive);
    }

    @Override
    public int deleteDetail(long id) {
        return detailMapper.deleteDetail(id);
    }

    /*@Override
    public List<Detail> allList(){
        return detailMapper.allList();
    }*/
}
